﻿/*
    Bulid on Visitor Manager 1.7.4 / 2009-07-30
 */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Rmlife.Common
{
    /// <summary>
    /// 版本统合信息
    /// </summary>
    public class CompanyProperties
    {
        /// <summary>
        /// 版本号
        /// </summary>
        public const string ASSEMBLY_VERSION = "1.7";
        /// <summary>
        /// 版本build号
        /// </summary>
        public const string ASSEMBLY_VERSIONBUILD = ".4";
        /// <summary>
        /// 版本修改日期
        /// </summary>
        public const string ASSEMBLY_VERSIONDATE = "2009-7-20";


        /// <summary>
        /// 唯一产品密钥
        /// </summary>
        public const string ASSEMBLY_AUTHKEY = "VMRAINSOFT";
        /// <summary>
        /// 存储唯一字串名称，修改会导致密码失效或登录状态重置
        /// </summary>
        public const string ASSEMBLY_COOKIEKEY = "Rmlife";
        /// <summary>
        /// 产品标题
        /// </summary>
        public const string ASSEMBLY_PRODUCTTITLE = "ASP.Net.SpaceBuilder";
        /// <summary>
        /// 产品名称
        /// </summary>
        public const string ASSEMBLY_PRODUCTNAME = "Rmlife.Rmlife";
        /// <summary>
        /// 产品站点
        /// </summary>
        public const string ASSEMBLY_PRODUCTSITE = "http://www.rain-soft.com.cn";

        /// <summary>
        /// 版权公司
        /// </summary>
        public const string ASSEMBLY_COMPANYNAME = "RmlifeJun";
        /// <summary>
        /// 公司站点
        /// </summary>
        public const string ASSEMBLY_COMPANYSITE = "http://www.rain-soft.com.cn";
        /// <summary>
        /// 版权时间
        /// </summary>
        public const string ASSEMBLY_COPYRIGHTEXPIRE = "2008-2009";


        /// <summary>
        /// 密码加密方法
        /// </summary>
        /// <param name="srcPwd"></param>
        /// <returns></returns>
        public static string EncodePassword(string srcPwd)
        {
            //md5
            return Utils.MD5(srcPwd);
        }

        /// <summary>
        /// 注册表路径
        /// </summary>
        public static string _RegPath = @"SOFTWARE\Rmlifejun\SpaceBuilder\AspSpace\";
    }
}
